package configuration

import (
	"encoding/json"
	"kop/modules/configuration/client"
	"kop/util/log"
)

func init() {

	if err := json.Unmarshal(client.Load("EventStimulate"), &Configs); err != nil {
		panic(err)
	}

	log.Info("Load EventStimulate.json success.")

}

var Configs = map[int32]Conf{}

type Conf struct {
	ID     int32 // 评价ID
	Weight int32 // 权重
	Morale int32 `json:"Morale"` // 士气阈值
	//VIP    int32 `json:"NeedVIP"`     // VIP要求
	Income int64 `json:"AwardIncome"` // 银币收益奖励
}

func (c Conf) GetWeight() int32 {
	return c.Weight
}

func (c Conf) GetID() int32 {
	return c.ID
}
